public class AnimalMain implements AnimalService{
    @Override
    public void addAnimal(Animal animal) {
        System.out.println("Adding animal: " + animal);
    }

    @Override
    public void deleteAnimal(Animal animal) {
        System.out.println("Deleting animal: " + animal);

    }

    public static void main(String[] args) {
Animal animal = new Animal();
animal.setId(1);
animal.setName("Dog");
animal.setAge(2);
animal.setGender("Male");
System.out.println("Id: " + animal.getId());
AnimalMain animalMain = new AnimalMain();
animalMain.addAnimal(animal);
animalMain.deleteAnimal(animal);
    }
}
